import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/account/models/take_out_entity.dart';
TakeOutEntity $TakeOutEntityFromJson(Map<String, dynamic> json) {
  final TakeOutEntity takeOutEntity = TakeOutEntity();
  final String? date = jsonConvert.convert<String>(json['date']);
  if (date != null) {
    takeOutEntity.date = date;
  }
  final String? month = jsonConvert.convert<String>(json['month']);
  if (month != null) {
    takeOutEntity.month = month;
  }
  final List<TakeOutItemEntity>? list = jsonConvert.convert<List<TakeOutItemEntity>>(json['list']);
  if (list != null) {
    takeOutEntity.list = list;
  }
  return takeOutEntity;
}

Map<String, dynamic> $TakeOutEntityToJson(TakeOutEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['date'] = entity.date;
  data['month'] = entity.month;
  data['list'] = entity.list;
  return data;
}

TakeOutItemEntity $TakeOutItemEntityFromJson(Map<String, dynamic> json) {
  final TakeOutItemEntity takeOutItemEntity = TakeOutItemEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    takeOutItemEntity.id = id;
  }
  final String? cardNo = jsonConvert.convert<String>(json['cardNo']);
  if (cardNo != null) {
    takeOutItemEntity.cardNo = cardNo;
  }
  final String? cardUsername = jsonConvert.convert<String>(json['cardUsername']);
  if (cardUsername != null) {
    takeOutItemEntity.cardUsername = cardUsername;
  }
  final String? bankName = jsonConvert.convert<String>(json['bankName']);
  if (bankName != null) {
    takeOutItemEntity.bankName = bankName;
  }
  final String? bankCover = jsonConvert.convert<String>(json['bankCover']);
  if (bankCover != null) {
    takeOutItemEntity.bankCover = bankCover;
  }
  final double? score = jsonConvert.convert<double>(json['score']);
  if (score != null) {
    takeOutItemEntity.score = score;
  }
  final double? beforeScore = jsonConvert.convert<double>(json['beforeScore']);
  if (beforeScore != null) {
    takeOutItemEntity.beforeScore = beforeScore;
  }
  final String? username = jsonConvert.convert<String>(json['username']);
  if (username != null) {
    takeOutItemEntity.username = username;
  }
  final String? userAvatar = jsonConvert.convert<String>(json['userAvatar']);
  if (userAvatar != null) {
    takeOutItemEntity.userAvatar = userAvatar;
  }
  final String? userNickName = jsonConvert.convert<String>(json['userNickName']);
  if (userNickName != null) {
    takeOutItemEntity.userNickName = userNickName;
  }
  final String? status = jsonConvert.convert<String>(json['status']);
  if (status != null) {
    takeOutItemEntity.status = status;
  }
  final String? remark = jsonConvert.convert<String>(json['remark']);
  if (remark != null) {
    takeOutItemEntity.remark = remark;
  }
  final String? createTime = jsonConvert.convert<String>(json['createTime']);
  if (createTime != null) {
    takeOutItemEntity.createTime = createTime;
  }
  final String? time = jsonConvert.convert<String>(json['time']);
  if (time != null) {
    takeOutItemEntity.time = time;
  }
  return takeOutItemEntity;
}

Map<String, dynamic> $TakeOutItemEntityToJson(TakeOutItemEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['cardNo'] = entity.cardNo;
  data['cardUsername'] = entity.cardUsername;
  data['bankName'] = entity.bankName;
  data['bankCover'] = entity.bankCover;
  data['score'] = entity.score;
  data['beforeScore'] = entity.beforeScore;
  data['username'] = entity.username;
  data['userAvatar'] = entity.userAvatar;
  data['userNickName'] = entity.userNickName;
  data['status'] = entity.status;
  data['remark'] = entity.remark;
  data['createTime'] = entity.createTime;
  data['time'] = entity.time;
  return data;
}